package com.slz3.business.module.goodsManagement.gooInventory.domain;

import com.slz3.business.module.goodsManagement.gooGoods.domain.GooGoods;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * 库存管理
 * 单表的增删改查
 * v1.0 库存管理
 * v2.0 wms 上线之后废弃
 * 从这里维护商品库存数量的增减
 * 编号 | 审核状态 | 关联商品 | 库存增量 | 备注 | 标签
 */
@Entity
@Table(schema = "goods_management", name = "goo_inventory")
@Data
@EqualsAndHashCode(callSuper = true)
public class GooInventory extends GooInventoryEntity implements Serializable {

    private static final long serialVersionUID = 3928173855627287110L;
    @Transient
//    @NotNull(message = "ser1 必须非空!", groups = {Add.class, Modify.class})
//    @Length(min = 1, max = 255, message = "ser1 必须非空!", groups = {Add.class, Modify.class})
    private String serValid;

    @Transient
//    @NotNull(message = "ser2 必须非空!", groups = {Add.class, Modify.class})
//    @Length(min = 1, max = 255, message = "ser2 必须非空!", groups = {Add.class, Modify.class})
    private String serValid2;

    @Transient
    private GooGoods gooGoods;

}
